<?php /* Smarty version 2.6.26, created on 2010-04-28 17:17:18
         compiled from admin/notice.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'admin/notice.tpl', 36, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="webapps/admin/stylesheets/admin.css" />
<link type="text/css" rel="stylesheet" href="webapps/styles/table_dis.css" />
<script type="text/javascript" src="webapps/scripts/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#tab tr").hover(function(){$(this).css("background","#DEEBFC");},function(){$(this).css("background","#FFF");});
});
</script>
<title><?php echo $this->_tpl_vars['title']; ?>
</title>
</head>

<body>
<table width="100%" cellpadding="1" cellspacing="1" border="0" id="tab">
  <tr>
    <th colspan="5" style="background-color:#4F9AD0;">通知列表</th>
  </tr>
  <tr>
    <td width="8%">通知编号</td>
    <td width="20%">通知标题</td>
    <td width="25%">通知摘要</td>
    <td width="10%">发布时间</td>
    <td width="10%">操作</td>
  </tr>
  <?php if ($this->_tpl_vars['res_notice'] == 'NULL'): ?>
  <tr>
  	<td colspan="5" style="color:red;">暂没有通知！</td>
  </tr>
  <?php else: ?>
  <?php unset($this->_sections['tmp_res_notice']);
$this->_sections['tmp_res_notice']['name'] = 'tmp_res_notice';
$this->_sections['tmp_res_notice']['loop'] = is_array($_loop=$this->_tpl_vars['res_notice']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['tmp_res_notice']['show'] = true;
$this->_sections['tmp_res_notice']['max'] = $this->_sections['tmp_res_notice']['loop'];
$this->_sections['tmp_res_notice']['step'] = 1;
$this->_sections['tmp_res_notice']['start'] = $this->_sections['tmp_res_notice']['step'] > 0 ? 0 : $this->_sections['tmp_res_notice']['loop']-1;
if ($this->_sections['tmp_res_notice']['show']) {
    $this->_sections['tmp_res_notice']['total'] = $this->_sections['tmp_res_notice']['loop'];
    if ($this->_sections['tmp_res_notice']['total'] == 0)
        $this->_sections['tmp_res_notice']['show'] = false;
} else
    $this->_sections['tmp_res_notice']['total'] = 0;
if ($this->_sections['tmp_res_notice']['show']):

            for ($this->_sections['tmp_res_notice']['index'] = $this->_sections['tmp_res_notice']['start'], $this->_sections['tmp_res_notice']['iteration'] = 1;
                 $this->_sections['tmp_res_notice']['iteration'] <= $this->_sections['tmp_res_notice']['total'];
                 $this->_sections['tmp_res_notice']['index'] += $this->_sections['tmp_res_notice']['step'], $this->_sections['tmp_res_notice']['iteration']++):
$this->_sections['tmp_res_notice']['rownum'] = $this->_sections['tmp_res_notice']['iteration'];
$this->_sections['tmp_res_notice']['index_prev'] = $this->_sections['tmp_res_notice']['index'] - $this->_sections['tmp_res_notice']['step'];
$this->_sections['tmp_res_notice']['index_next'] = $this->_sections['tmp_res_notice']['index'] + $this->_sections['tmp_res_notice']['step'];
$this->_sections['tmp_res_notice']['first']      = ($this->_sections['tmp_res_notice']['iteration'] == 1);
$this->_sections['tmp_res_notice']['last']       = ($this->_sections['tmp_res_notice']['iteration'] == $this->_sections['tmp_res_notice']['total']);
?>
  <tr>
    <td><?php echo $this->_tpl_vars['res_notice'][$this->_sections['tmp_res_notice']['index']]['id']; ?>
</td>
    <td><?php echo ((is_array($_tmp=$this->_tpl_vars['res_notice'][$this->_sections['tmp_res_notice']['index']]['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 80) : smarty_modifier_truncate($_tmp, 80)); ?>
 <img src="webapps/images/hot/<?php echo $this->_tpl_vars['res_notice'][$this->_sections['tmp_res_notice']['index']]['hot']; ?>
.gif" /></td>
    <td><?php echo ((is_array($_tmp=$this->_tpl_vars['res_notice'][$this->_sections['tmp_res_notice']['index']]['content'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 100) : smarty_modifier_truncate($_tmp, 100)); ?>
</td>
    <td><?php echo $this->_tpl_vars['res_notice'][$this->_sections['tmp_res_notice']['index']]['postdate']; ?>
</td>
    <td><a href="index.php?controller=admin&action=delNotice&id=<?php echo $this->_tpl_vars['res_notice'][$this->_sections['tmp_res_notice']['index']]['id']; ?>
" onclick="javascript:return confirm('你确定要删除吗？');">删除</a></td>
  </tr>
  <?php endfor; endif; ?>
  <?php endif; ?>
</table>
</body>
</html>